package com.cqc.scenetransition01;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.transition.Slide;
import android.transition.Transition;
import android.view.Window;

/**
 * Created by ${cqc} on 2017/8/1.
 */

public class ActivityB extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getWindow().requestFeature(Window.FEATURE_CONTENT_TRANSITIONS);
        setContentView(R.layout.activity_b);
    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        getWindow().setExitTransition(new Slide());
    }
}
